package com.my.hotel.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@Controller
@RequestMapping("/index")
public class IndexController {

    @RequestMapping("/toWelcome")
    public String toWelCome(){
        return "welcome";
    }

    @RequestMapping("/eva")
    public String eva(String kfId, String orderId,Model model){
        model.addAttribute("kfId",kfId);
        model.addAttribute("orderId",orderId);
        return "eva";
    }

}
